package main

import (
	"log"
	"unicode/utf8"
	"fmt"
)

func main() {

	var str = "nihao我爱中国a!"

	n := utf8.RuneCountInString(str)

	log.Println(len(str), n)


	for i,ch := range []rune(str) {
		fmt.Printf("(%d, %s)", i, string(ch))
	}


}
